package com.example.mybatistest.service.impl;

import com.example.mybatistest.dto.FzbSearchDto;
import com.example.mybatistest.entity.FzbEntity;
import com.example.mybatistest.mapper.FzbMapper;
import com.example.mybatistest.service.ITestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@Component
public class TestServiceImpl implements ITestService {

    @Autowired
    FzbMapper fzbMapper;

    @Override
    public List<FzbEntity> select(FzbEntity entity) {

        return fzbMapper.findByCondition(entity);
    }

    @Override
    public List<FzbEntity> select(FzbSearchDto entity) {
        return fzbMapper.findByCondition2(entity);
    }
}
